home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / wpjv1n2.zip / HAXTON.ZIP / WINMAIN.C < prev    next >
C/C++ Source or Header  |  1993-01-27  |  982b  |  48 lines

  1. //*********************************************************
  2. //*
  3. //* winmain.c: testing DLL
  4. //*
  5. //*********************************************************
  6.  
  7. #define    NOCOMM
  8. #define    _WINDOWS
  9.  
  10. #include    <windows.h>
  11. #include "rodsapp.h"
  12.  
  13. int PASCAL WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpszCmdLine,
  14.     int nCmdShow)
  15. {
  16.  
  17.     /* local variables */
  18.     MSG        msg;
  19.  
  20.     /* if no prev. instance initialize */
  21.     if(!hPrevInstance) {
  22.  
  23.         /* call initialization function */
  24.         if(!InitApplication(hInstance)) 
  25.             return(FALSE);
  26.  
  27.     }
  28.  
  29.     /* perform initialization for instances */
  30.     if(!InitInstance(hInstance, nCmdShow))
  31.         return(FALSE);
  32.  
  33.     /* fetch messages for this application */
  34.     while(GetMessage(&msg, NULL, 0, 0)) {
  35.  
  36.         /* translate codes */
  37.         TranslateMessage(&msg);
  38.  
  39.         /* dispatch the messages to the appropriate window functions */
  40.         DispatchMessage(&msg);
  41.  
  42.     }
  43.  
  44.     /* return the value from PostQuitMessage */
  45.     return(msg.wParam);
  46.  
  47. } /* WinMain */
  48.